<?php
echo $this->adminToolBar('aboutcountry', 'index', '/admin/aboutcountry/add/', '/admin/aboutcountry/edit/', '/admin/aboutcountry/delete/', '');
?>
<div class="mid-content" id="grid_tour">
    <table class="box-table-a" width="100%"> 
        <tr>
            <th scope="col" width="5%">#</th>
            <th scope="col" width="25%">Category</th>
            <th scope="col" width="25%">Page Title</th>
            <th scope="col" width="5%">Status</th>  
            <th scope="col" width="5%">&nbsp;</th>  
            <th scope="col" width="5%">&nbsp;</th>  
            <th scope="col" width="5%">&nbsp;</th>  
        </tr>
		<?php foreach($this->rec_arr as $rec_entry) : ?>
		<?php	
			if($rec_entry['status'] == 1)
			{
				$status = "Published";
			} else {
				$status = "Unpublished";
			}
		?>	
        <tr>
            <td><?php echo $rec_entry['page_id']; ?></td>
            <td><?php echo $rec_entry['category']; ?></td>
            <td><?php echo $rec_entry['title']; ?></td>
            <td><?php echo $status; ?></td>
            <td><a href="javascript: void(0);" onclick="loadPage('/admin/aboutcountry/view/page_id/<?php echo $rec_entry['page_id']; ?>');" title="Description"><img src="/images/admin/icons/list-2.gif" alt=""/></a></td>
            <td><a href="javascript: void(0);" onclick="loadPage('/admin/aboutcountry/edit/page_id/<?php echo $rec_entry['page_id']; ?>');" title="Edit"><img src="/images/admin/icons/edit.gif" alt=""/></a></td>
            <td><a rel="" onclick="deletePageRec('<?php echo $rec_entry['page_id']; ?>')" href="javascript: void(0);"><img src="/images/admin/icons/disable.gif" alt=""/></a></td>
        </tr>
        <?php endforeach; ?>
    </table>
</div> 